package com.linx.notice.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.linx.common.translation.annotation.TranslationSupper;
import com.linx.common.translation.constant.TransConstant;
import com.linx.notice.domain.InfoType;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;



/**
 * 信息发布—类型管理视图对象 info_type
 *
 * @author 泽智科技
 * @date 2024-10-21
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = InfoType.class)
public class InfoTypeVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long infoTypeId;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String typeName;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    private Integer typeUseNum;
    /**
     * 排序
     */
    private Long typeSort;

    /**
     * 图标id
     */
    private Long infoTypeOssId;

    /**
     * 图标
     */
    @TranslationSupper(type = TransConstant.OSS_ID_TO_URL, mapper = "infoTypeOssId")
    private String imgUrl;

}
